package com.xcf.service.business.bookingcargo.impl;

import java.util.List;
import java.util.Map;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.xcf.dao.DaoSupport;
import com.xcf.service.business.bookingcargo.HomePageService;
import com.xcf.util.PageData;
@Service("homePageService")
public class HomePageServiceImpl implements HomePageService{
	@Resource(name = "daoSupport")
	private DaoSupport dao;
	@SuppressWarnings("unchecked")
	@Override
	public List<PageData> findHomePageInfo(PageData pd) throws Exception {
		
		
		return (List<PageData>) dao.findForList("homePage.findBookingNote", pd);
	}
	@SuppressWarnings("unchecked")
	@Override
	public List<Map> queryByPage(Map params)throws Exception {
		// TODO Auto-generated method stub
		return (List<Map>) dao.findForMap("homePage.findBookingNote", params,null,null);
	}
	@Override
	public List<Map> findConsoleData() throws Exception {
		// TODO Auto-generated method stub
		return (List<Map>) dao.findForList("homePage.findBookingNoteData", null);
	}
	@Override
	public PageData CountBookingNote() throws Exception {
		// TODO Auto-generated method stub
		return (PageData) dao.findForObject("homePage.CountBookingNote", null);
	}

}
